package com.gl.emms.whale.bean;

import java.io.Serializable;

/**
 * �û�����
 * 
 * @author way
 */
public class UserData implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String sessionid;//会话id
	private String id;//通讯id(首次连接的会话id)
	

	private String idip;//通讯idip(首次连接的会话idip)
	private String name;//姓名（用户名）
	private String phone;//手机号
	private boolean phoneIsVerify;//手机号
	private String password;//密码
	private boolean isOnline;//是否在线
	private int img;//头像位置
	private String ip;//ip地址
	private int port;//端口号
	private String mainroom;//主房间号
	private String elseroom;
	private String cardnum;//卡号
	private String lastversion;//最新软件版本号
	private String curruntversion;//当前软件版本号
	private String lasttime;//上次登录时间
	private String invoice;//发票
	
	public String getInvoice() {
		return invoice;
	}

	public void setInvoice(String invoice) {
		this.invoice = invoice;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	public boolean isPhoneIsVerify() {
		return phoneIsVerify;
	}

	public void setPhoneIsVerify(boolean phoneIsVerify) {
		this.phoneIsVerify = phoneIsVerify;
	}

	public String getCardnum() {
		return cardnum;
	}

	public void setCardnum(String cardnum) {
		this.cardnum = cardnum;
	}

	public String getLasttime() {
		return lasttime;
	}

	public void setLasttime(String lasttime) {
		this.lasttime = lasttime;
	}

	
	public String getCurruntversion() {
		return curruntversion;
	}

	public void setCurruntversion(String curruntversion) {
		this.curruntversion = curruntversion;
	}

	public String getLastversion() {
		return lastversion;
	}

	public void setLastversion(String lastversion) {
		this.lastversion = lastversion;
	}

	public String getMainroom() {
		return mainroom;
	}

	public void setMainroom(String mainroom) {
		this.mainroom = mainroom;
	}

	public String getElseroom() {
		return elseroom;
	}

	public void setElseroom(String elseroom) {
		this.elseroom = elseroom;
	}

	
	public String getSessionId() {
		return sessionid;
	}

	public void setSessionId(String sessionid) {
		this.sessionid = sessionid;
	}
	public String getIdIP() {
		return idip;
	}

	public void setIdIp(String idip) {
		this.idip = idip;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean getIsOnline() {
		return isOnline;
	}

	public void setIsOnline(boolean isOnline) {
		this.isOnline = isOnline;
	}

	public int getImg() {
		return img;
	}

	public void setImg(int img) {
		this.img = img;
	}

	@Override
	public boolean equals(Object o) {
		if (o instanceof UserData) {
			UserData user = (UserData) o;
			if (user.getIdIP() == idip && user.getIp().equals(ip)
					&& user.getPort() == port) {
				return true;
			}
		}

		return false;
	}

	@Override
	public String toString() {
		return "User [id=" + idip + ", name=" + name + ", email=" + phone
				+ ", password=" + password + ", isOnline=" + isOnline
				+ ", img=" + img + ", ip=" + ip + ", port=" + port + ", group="
				+ "]";
	}
}
